package a.f.e;

import a.c.d;
import a.d.n;
import a.d.s;
import a.d.t;
import a.d.w;
import a.f.*;

import java.util.ArrayList;

class f
{
  private static final double a = 0.001D;
  private static final byte b = 0;
  private static final byte c = 1;
  private static final byte d = 2;
  private static final a.d.o[] e = { new a.d.o(15.0D, 5.0D, 30.0D, 10.0D, 1.0D, 0.0D), new a.d.o(-15.0D, -15.0D, 100.0D, 30.0D, 0.5D, 0.5D), new a.d.o(50.0D, 90.0D, 40.0D, 15.0D, 0.0D, -1.0D) };
  private static final a.d.z g = new a.d.z(0.0D, -1.0D);
  private static final w h = new w(0.0D, 0.0D);
  
  private static boolean a(xb paramxb, zb paramzb, zc paramzc1, zc paramzc2)
  {
    int k = a.B;
    int j = a.A;
    if (k == 0) {
      if ((paramxb instanceof bc)) {
        return true;
      }
    }
    try
    {
      int i = 0;
      do
      {
        if (i >= e.length) {
          break;
        }
        Object localObject = paramxb.a(e[i], paramzb, paramzc1, paramzc2);
        a.d.o localo = paramxb.a(e[i].f(), paramzb, paramzc1, paramzc2, localObject);
        if (j != 0) {
          break label113;
        }
        if (!a.d.o.a(e[i], localo, 1.0D)) {
          return false;
        }
        i++;
      } while (j == 0);
    }
    catch (UnsupportedOperationException localUnsupportedOperationException)
    {
      return false;
    }
    label113:
    return true;
  }
  
  static a.c.z a(a.f.o paramo, d paramd, wb paramwb, xb paramxb, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3)
  {
    int j = a.B;
    int i = a.A;
    a.c.z localz1 = new a.c.z();
    zb localzb = paramo.e(paramd);
    zc localzc1 = paramo.d(paramd.e());
    zc localzc2 = paramo.d(paramd.f());
    xb localxb = paramwb.a();
    if (j == 0) {}
    Object localObject1 = paramwb.e() == null ? localxb.a() : paramwb.e();
    if (j == 0) {}
    a.d.o localo = localxb == null ? paramwb.d() : localxb.a(paramwb.d().f(), localzb, localzc1, localzc2, localObject1);
    if (j == 0)
    {
      if (paramBoolean1) {
        localz1.add(new gc(localo, localObject1, paramwb, false));
      }
    }
    else {
      if (i == 0) {
        break label329;
      }
    }
    a.c.y localy;
    if (((j != 0) || (paramxb != null)) && ((j != 0) || (paramxb != localxb)))
    {
      Object localObject2 = paramxb.a(localo, localzb, localzc1, localzc2);
      wb localwb = a(paramwb.d(), paramxb, localObject2, paramwb.b());
      a.c.z localz2 = a(paramo, paramd, localwb, paramxb, paramBoolean2, paramBoolean3);
      localy = localz2.h();
    }
    while (localy.e())
    {
      gc localgc = (gc)localy.j();
      if (j == 0)
      {
        if (i != 0) {
          break label331;
        }
        localz1.add(a(localgc, paramwb, localxb, localzb, localzc1, localzc2));
        localy.f();
      }
      if (i != 0)
      {
        if (j != 0) {
          break label331;
        }
        localz1.addAll(a(paramo, paramd, paramwb, localxb, paramBoolean2, paramBoolean3));
      }
    }
    label329:
    label331:
    return localz1;
  }
  
  private static gc a(gc paramgc, wb paramwb, xb paramxb, zb paramzb, zc paramzc1, zc paramzc2)
  {
    Object localObject = paramxb.a(paramgc.j(), paramzb, paramzc1, paramzc2);
    a.d.o localo = paramxb.a(paramgc.j().f(), paramzb, paramzc1, paramzc2, localObject);
    return new gc(localo, localObject, paramwb);
  }
  
  private static wb a(a.d.o paramo, xb paramxb, Object paramObject, fd paramfd)
  {
    mc localmc = new mc();
    localmc.a(paramxb);
    localmc.a(paramObject);
    localmc.a(paramfd);
    localmc.a(paramo);
    return localmc;
  }
  
  private static a.c.z a(a.f.o paramo, d paramd, wb paramwb, xb paramxb, boolean paramBoolean1, boolean paramBoolean2)
  {
    int i = a.B;
    zb localzb = paramo.e(paramd);
    zc localzc1 = paramo.d(paramd.e());
    zc localzc2 = paramo.d(paramd.f());
    if ((i != 0) || (paramxb != null))
    {
      if (i != 0) {
        break label71;
      }
      if (!a(paramxb, localzb, localzc1, localzc2)) {}
    }
    else
    {
      return a(paramo, paramd, paramwb, paramBoolean1, paramBoolean2);
    }
    label71:
    return paramxb.a(paramwb, localzb, localzc1, localzc2);
  }
  
  private static a.c.z a(a.f.o paramo, d paramd, wb paramwb, boolean paramBoolean1, boolean paramBoolean2)
  {
    int i4 = a.B;
    int i3 = a.A;
    t localt1 = paramo.v(paramd.e());
    t localt2 = paramo.v(paramd.f());
    zc localzc1 = paramo.d(paramd.e());
    zc localzc2 = paramo.d(paramd.f());
    zb localzb = paramo.e(paramd);
    a.d.y localy = wc.a(localzb, localzc1, localzc2, 0.0D);
    a.c.z localz = new a.c.z();
    if (localy.j() == 0) {
      return localz;
    }
    fd localfd = paramwb.b();
    double d1 = a(localy);
    int i = a(paramo, localy);
    int j = 0;
    int k = localy.j() - 1;
    label473:
    label486:
    label499:
    do
    {
      do
      {
        if (j >= k) {
          break label512;
        }
        n localn = localy.a(j);
        if (i4 != 0) {
          break;
        }
        if (localn.h() > 0.0D)
        {
          b_[] arrayOfb_ = a(localfd, localn, paramBoolean1);
          int m = 0;
          do
          {
            do
            {
              if (m >= arrayOfb_.length) {
                break label499;
              }
              b_ localb_ = arrayOfb_[m];
              a.d.o[] arrayOfo = a(paramwb, localn, localb_);
              if (i3 != 0) {
                break;
              }
              int n = 0;
              do
              {
                if (n >= arrayOfo.length) {
                  break label486;
                }
                a.d.o localo1 = arrayOfo[n];
                double[] arrayOfDouble = a(localo1, localn, localb_, i);
                if (i3 != 0) {
                  break;
                }
                int i1 = 0;
                do
                {
                  do
                  {
                    if (i1 >= arrayOfDouble.length) {
                      break label473;
                    }
                    a.d.o localo2 = new a.d.o(localo1);
                    a.d.z localz1 = localn.i();
                    localz1.b(arrayOfDouble[i1]);
                    w localw = a.d.z.a(localn.d(), localz1);
                    a(localo2, localn, localw, localb_);
                    if (i3 != 0) {
                      break;
                    }
                    if (paramBoolean2) {
                      wc.b(localo2);
                    }
                    double d2 = d1;
                    int i2 = 1;
                    if (i4 == 0) {
                      if (localfd.j())
                      {
                        i2 = 0;
                        d2 = Math.min(d2, b(localt1, localo2));
                      }
                    }
                    if (i4 == 0) {
                      if (localfd.l())
                      {
                        i2 = 0;
                        d2 = Math.min(d2, b(localt2, localo2));
                      }
                    }
                    if ((i4 != 0) || (i2 == 0))
                    {
                      if (i4 != 0) {
                        continue;
                      }
                      if (d2 >= 100.0D) {}
                    }
                    else
                    {
                      Object localObject = paramwb.a().a(localo2, localzb, localzc1, localzc2);
                      gc localgc = new gc(localo2, localObject, paramwb, false);
                      double d3 = a(localgc, localfd, localb_);
                      localgc.a(d3);
                      localz.add(localgc);
                    }
                    i1++;
                  } while (i3 == 0);
                  n++;
                } while (i4 != 0);
              } while (i3 == 0);
              m++;
            } while (i4 != 0);
          } while (i3 == 0);
        }
        j++;
      } while (i4 != 0);
    } while (i3 == 0);
    label512:
    return localz;
  }
  
  private static int a(a.f.o paramo, a.d.y paramy)
  {
    int j = a.B;
    int i = (int)Math.floor(30.0D / (paramy.j() - 1));
    if (j == 0) {
      if (paramo.m() > 100)
      {
        i = (int)Math.floor(15.0D / (paramy.j() - 1));
        if (j != 0) {
          break label96;
        }
        if (a.A == 0) {
          break label89;
        }
      }
    }
    if (j == 0) {
      if (paramo.m() > 500) {
        i = (int)Math.floor(10.0D / (paramy.j() - 1));
      }
    }
    label89:
    i = Math.max(i, 5);
    label96:
    return i;
  }
  
  private static double a(a.d.y paramy)
  {
    double d1 = paramy.m();
    return Math.max(100.0D, d1 * 0.2D);
  }
  
  private static b_[] a(fd paramfd, n paramn, boolean paramBoolean)
  {
    b_[] arrayOfb_ = b(paramfd, paramn, paramBoolean);
    a(arrayOfb_);
    c(arrayOfb_);
    a(arrayOfb_, paramfd);
    return arrayOfb_;
  }
  
  private static b_[] b(fd paramfd, n paramn, boolean paramBoolean)
  {
    int i4 = a.B;
    int i3 = a.A;
    if (i4 == 0) {}
    int i = paramn.k() < 0.0D ? 1 : 0;
    if (i4 == 0) {}
    int j = paramn.k() > 0.0D ? 1 : 0;
    if (i4 == 0) {}
    int k = paramn.l() < -0.001D ? 1 : 0;
    if (i4 == 0) {}
    int m = paramn.l() > 0.001D ? 1 : 0;
    if ((i4 != 0) || (k == 0)) {
      if (i4 != 0) {}
    }
    int n = m == 0 ? 1 : 0;
    boolean bool1 = paramfd.n();
    boolean bool2 = paramfd.p();
    boolean bool3 = paramfd.o();
    boolean bool4 = paramfd.w();
    boolean bool5 = paramfd.x();
    boolean bool6 = paramfd.y();
    Object localObject = new b_[5];
    int i1 = 0;
    if (i4 == 0) {
      if (bool3) {
        localObject[(i1++)] = new b_(1, false, null);
      }
    }
    if (i4 == 0) {
      if (bool2)
      {
        if (i4 == 0) {
          if (paramBoolean)
          {
            if (i4 != 0) {
              break label372;
            }
            if (m != 0) {
              break label334;
            }
            if (i4 != 0) {
              break label372;
            }
            if (n != 0) {
              break label334;
            }
          }
        }
        if (i4 != 0) {
          break label382;
        }
        if (!paramBoolean)
        {
          if (i4 == 0) {
            if (m != 0)
            {
              if (i4 != 0) {
                break label372;
              }
              if (bool5) {
                break label334;
              }
              if (i4 != 0) {
                break label372;
              }
              if (bool6) {
                break label334;
              }
            }
          }
          if (i4 == 0) {
            if (j != 0)
            {
              if (i4 != 0) {
                break label306;
              }
              if (n != 0)
              {
                if (i4 != 0) {
                  break label372;
                }
                if (bool6) {
                  break label334;
                }
              }
            }
          }
          label306:
          if (i4 != 0) {
            break label382;
          }
          if (i != 0)
          {
            if (i4 != 0) {
              break label382;
            }
            if (n != 0)
            {
              if (i4 != 0) {
                break label382;
              }
              if (bool5)
              {
                label334:
                localObject[(i1++)] = new b_(0, true, null);
                localObject[(i1++)] = new b_(0, true, null);
                label372:
                if (i4 != 0) {
                  break label555;
                }
                if (i3 == 0) {
                  break label553;
                }
              }
            }
          }
        }
      }
    }
    label382:
    if (i4 == 0) {
      if (bool1)
      {
        if ((i4 != 0) || ((!paramBoolean) || ((i4 != 0) || (k == 0))))
        {
          if (i4 != 0) {
            break label555;
          }
          if (paramBoolean) {
            break label553;
          }
          if (((i4 != 0) || (!bool4)) && ((i4 != 0) || ((k == 0) || (((i4 != 0) || (!bool5)) && ((i4 != 0) || (!bool6))))) && ((i4 != 0) || ((j == 0) || ((i4 != 0) || ((n == 0) || ((i4 != 0) || (!bool5)))))))
          {
            if (i4 != 0) {
              break label555;
            }
            if (i == 0) {
              break label553;
            }
            if (i4 != 0) {
              break label555;
            }
            if (n == 0) {
              break label553;
            }
            if (i4 != 0) {
              break label555;
            }
            if (!bool6) {
              break label553;
            }
          }
        }
        localObject[(i1++)] = new b_(0, false, null);
        localObject[(i1++)] = new b_(0, false, null);
      }
    }
    label553:
    label555:
    if (i4 == 0) {
      if (bool2)
      {
        if (i4 == 0) {
          if (paramBoolean)
          {
            if (i4 != 0) {
              break label728;
            }
            if (k != 0) {
              break label690;
            }
          }
        }
        if (i4 != 0) {
          break label738;
        }
        if (!paramBoolean)
        {
          if (i4 == 0)
          {
            if (!bool4)
            {
              if (i4 == 0) {
                if (k != 0)
                {
                  if (i4 != 0) {
                    break label728;
                  }
                  if (bool5) {
                    break label690;
                  }
                  if (i4 != 0) {
                    break label728;
                  }
                  if (bool6) {
                    break label690;
                  }
                }
              }
              if (i4 == 0) {
                if (j != 0)
                {
                  if (i4 != 0) {
                    break label662;
                  }
                  if (n != 0)
                  {
                    if (i4 != 0) {
                      break label728;
                    }
                    if (bool5) {
                      break label690;
                    }
                  }
                }
              }
              if (i4 != 0) {
                break label738;
              }
              if (i == 0) {
                break label736;
              }
              if (i4 != 0) {
                break label738;
              }
              if (n == 0) {
                break label736;
              }
              if (i4 != 0) {
                break label738;
              }
              if (!bool6) {
                break label736;
              }
            }
            label690:
            localObject[(i1++)] = new b_(2, false, null);
            localObject[(i1++)] = new b_(2, false, null);
          }
          label728:
          if (i4 != 0) {
            break label911;
          }
          if (i3 == 0) {
            break label909;
          }
        }
      }
    }
    label662:
    label736:
    label738:
    if (i4 == 0) {
      if (bool1)
      {
        if ((i4 != 0) || ((!paramBoolean) || (((i4 != 0) || (m == 0)) && ((i4 != 0) || (n == 0)))))
        {
          if (i4 != 0) {
            break label911;
          }
          if (paramBoolean) {
            break label909;
          }
          if (((i4 != 0) || ((m == 0) || (((i4 != 0) || (!bool5)) && ((i4 != 0) || (!bool6))))) && ((i4 != 0) || ((j == 0) || ((i4 != 0) || ((n == 0) || ((i4 != 0) || (!bool6)))))))
          {
            if (i4 != 0) {
              break label911;
            }
            if (i == 0) {
              break label909;
            }
            if (i4 != 0) {
              break label911;
            }
            if (n == 0) {
              break label909;
            }
            if (i4 != 0) {
              break label911;
            }
            if (!bool5) {
              break label909;
            }
          }
        }
        localObject[(i1++)] = new b_(2, true, null);
        localObject[(i1++)] = new b_(2, true, null);
      }
    }
    label909:
    label911:
    if (i4 == 0) {
      if (i1 == 0)
      {
        localObject[(i1++)] = new b_(1, false, null);
        localObject[(i1++)] = new b_(0, false, null);
        localObject[(i1++)] = new b_(0, false, null);
        localObject[(i1++)] = new b_(2, false, null);
        if (i4 != 0) {
          break label1086;
        }
        localObject[(i1++)] = new b_(2, false, null);
        if (i3 == 0) {
          break label1084;
        }
      }
    }
    if ((i4 != 0) || (i1 < 5))
    {
      b_[] arrayOfb_ = new b_[i1];
      int i2 = 0;
      if (i2 < i1) {}
      for (;;)
      {
        if (i4 == 0)
        {
          arrayOfb_[i2] = localObject[i2];
          i2++;
          if (i3 == 0)
          {
            if (i3 == 0) {
              break;
            }
            if (i4 != 0) {
              continue;
            }
            localObject = arrayOfb_;
          }
        }
      }
    }
    label1084:
    label1086:
    return localObject;
  }
  
  private static void a(b_[] paramArrayOfb_, fd paramfd)
  {
    int k = a.B;
    int j = a.A;
    if (k == 0) {}
    int i = paramfd.h() <= 0.0D ? 40 : (int)Math.ceil(paramfd.h());
    if (k == 0) {
      if (paramArrayOfb_.length == 1)
      {
        paramArrayOfb_[0].e = 0;
        if ((k == 0) && (j == 0)) {
          return;
        }
      }
    }
    if (k == 0) {
      if (paramArrayOfb_.length == 2)
      {
        paramArrayOfb_[0].e = 0;
        paramArrayOfb_[1].e = i;
        if ((k == 0) && (j == 0)) {
          return;
        }
      }
    }
    if (k == 0) {
      if (paramArrayOfb_.length == 3)
      {
        paramArrayOfb_[0].e = 0;
        paramArrayOfb_[1].e = 0;
        paramArrayOfb_[2].e = i;
        if ((k == 0) && (j == 0)) {
          return;
        }
      }
    }
    if (k == 0)
    {
      if (paramArrayOfb_.length == 4)
      {
        paramArrayOfb_[0].e = 0;
        paramArrayOfb_[1].e = i;
        paramArrayOfb_[2].e = 0;
        paramArrayOfb_[3].e = i;
        if ((k == 0) && (j == 0)) {
          return;
        }
      }
      if (k != 0) {}
    }
    else
    {
      if (paramArrayOfb_.length != 5) {
        return;
      }
      paramArrayOfb_[0].e = 0;
      paramArrayOfb_[1].e = 0;
      paramArrayOfb_[2].e = i;
      paramArrayOfb_[3].e = 0;
    }
    paramArrayOfb_[4].e = i;
  }
  
  private static void a(b_[] paramArrayOfb_)
  {
    int k = a.B;
    int j = a.A;
    if (k == 0)
    {
      if (paramArrayOfb_.length < 5)
      {
        int i = 0;
        do
        {
          if (i >= paramArrayOfb_.length) {
            break;
          }
          paramArrayOfb_[i].c = 1.0D;
          i++;
        } while (j == 0);
      }
      if (k != 0) {}
    }
    else
    {
      if (paramArrayOfb_.length != 5) {
        return;
      }
      paramArrayOfb_[0].c = 1.0D;
      paramArrayOfb_[1].c = 1.0D;
      paramArrayOfb_[2].c = 2.0D;
      paramArrayOfb_[3].c = 1.0D;
    }
    paramArrayOfb_[4].c = 2.0D;
  }
  
  private static void c(b_[] paramArrayOfb_)
  {
    int k = a.B;
    int j = a.A;
    if (k == 0)
    {
      if (paramArrayOfb_.length < 5)
      {
        int i = 0;
        do
        {
          if (i >= paramArrayOfb_.length) {
            break;
          }
          paramArrayOfb_[i].d = 0;
          i++;
        } while (j == 0);
      }
      if (k != 0) {}
    }
    else
    {
      if (paramArrayOfb_.length != 5) {
        return;
      }
      paramArrayOfb_[0].d = 0;
      paramArrayOfb_[1].d = 1;
      paramArrayOfb_[2].d = 0;
      paramArrayOfb_[3].d = 1;
    }
    paramArrayOfb_[4].d = 0;
  }
  
  private static boolean a(t paramt, a.d.o paramo)
  {
    return a.d.o.a(paramo, paramt, 0.0D);
  }
  
  private static double b(t paramt, a.d.o paramo)
  {
    return e.a(paramt, paramo);
  }
  
  private static double a(gc paramgc, fd paramfd, b_ paramb_)
  {
    int i = a.B;
    double d1 = 0.0D;
    if (i == 0) {}
    double d2 = paramfd.o() ? 0.0D : paramfd.h();
    if (i == 0) {
      if (d2 >= 0.0D)
      {
        if (i != 0) {
          break label67;
        }
        if (Math.abs(d2 - paramb_.e) >= 0.001D) {
          return d1;
        }
      }
    }
    d1 = 1.0D;
    label67:
    return d1;
  }
  
  private static a.d.o a(s params, a.d.z paramz, double paramDouble)
  {
    a.d.z localz = paramDouble != 0.0D ? paramz.a(paramDouble) : paramz;
    return new a.d.o(h, params, localz);
  }
  
  private static a.d.o[] a(wb paramwb, n paramn, b_ paramb_)
  {
    int j = a.B;
    ArrayList localArrayList = new ArrayList();
    s locals = paramwb.d().f();
    a.d.z localz1 = paramn.i();
    fd localfd = paramwb.b();
    double d1 = localfd.d();
    a.d.z localz2 = localz1.a(-1.570796326794897D);
    localz2.c();
    int i = paramb_.a;
    if (j == 0) {
      if (i != 1)
      {
        if (j == 0) {
          if (i == 0)
          {
            if (j != 0) {
              break label127;
            }
            if (!paramb_.b) {
              break label122;
            }
          }
        }
        if (j != 0) {
          break label197;
        }
        if (i != 2) {
          break label192;
        }
        if (j != 0) {
          break label197;
        }
        if (!paramb_.b) {
          break label192;
        }
      }
    }
    label122:
    label127:
    if (j == 0) {
      if (localfd.q()) {
        localArrayList.add(a(locals, g, d1));
      }
    }
    if (j == 0)
    {
      if (localfd.r())
      {
        localArrayList.add(a(locals, localz2, d1));
        if (j != 0) {
          break label537;
        }
        if (a.A != 0)
        {
          label192:
          label197:
          if (j == 0) {
            if (localfd.q())
            {
              if (j == 0) {
                if (localfd.s())
                {
                  if (j == 0) {
                    if (localfd.u()) {
                      localArrayList.add(a(locals, g, d1));
                    }
                  }
                  if (j != 0) {
                    break label287;
                  }
                  if (localfd.v()) {
                    localArrayList.add(a(locals, g, d1 + 3.141592653589793D));
                  }
                }
              }
              if (j != 0) {
                break label366;
              }
              if (localfd.t())
              {
                if (j == 0) {
                  if (localfd.u()) {
                    localArrayList.add(a(locals, g, -d1));
                  }
                }
                if (j != 0) {
                  break label366;
                }
                if (localfd.v()) {
                  localArrayList.add(a(locals, g, -d1 + 3.141592653589793D));
                }
              }
            }
          }
          label287:
          label366:
          if (j != 0) {
            break label537;
          }
          if (localfd.r())
          {
            if (j == 0) {
              if (localfd.s())
              {
                if (j == 0) {
                  if (localfd.u()) {
                    localArrayList.add(a(locals, localz2, d1));
                  }
                }
                if (j != 0) {
                  break label454;
                }
                if (localfd.v()) {
                  localArrayList.add(a(locals, localz2, d1 + 3.141592653589793D));
                }
              }
            }
            label454:
            if (j != 0) {
              break label537;
            }
            if (localfd.t())
            {
              if (j == 0) {
                if (localfd.u()) {
                  localArrayList.add(a(locals, localz2, -d1));
                }
              }
              if (j != 0) {
                break label537;
              }
              if (localfd.v()) {
                localArrayList.add(a(locals, localz2, -d1 + 3.141592653589793D));
              }
            }
          }
        }
      }
      if (j != 0) {
        break label559;
      }
    }
    if (localArrayList.size() == 0) {
      label537:
      return new a.d.o[] { a(locals, g, d1) };
    }
    label559:
    return (a.d.o[])localArrayList.toArray(new a.d.o[localArrayList.size()]);
  }
  
  private static void a(a.d.o paramo, n paramn, w paramw, b_ paramb_)
  {
    int i = a.B;
    if (i == 0)
    {
      if (paramb_.a == 1) {
        paramo.g(paramw.a, paramw.b);
      }
    }
    else if (a.A == 0) {
      return;
    }
    a.d.z localz1 = a.d.z.c(paramn.i());
    if (i == 0)
    {
      if (paramb_.a == 0) {
        localz1 = new a.d.z(-localz1.a(), -localz1.b());
      }
      localz1.b(paramb_.e + paramo.g() + paramo.h());
    }
    w localw = a.d.z.a(paramw, localz1);
    paramo.g(localw.a, localw.b);
    w[] arrayOfw = a.d.o.a(paramo);
    double d1 = a(paramn, arrayOfw);
    a.d.z localz2 = new a.d.z(-localz1.a(), -localz1.b());
    localz2.c();
    localz2.b(d1 - Math.abs(paramb_.e));
    localw = a.d.z.a(localw, localz2);
    paramo.g(localw.a, localw.b);
  }
  
  private static double a(n paramn, w[] paramArrayOfw)
  {
    int k = a.B;
    int j = a.A;
    double d1 = 1.7976931348623157E+308D;
    int i = 0;
    do
    {
      if (i >= paramArrayOfw.length) {
        break;
      }
      double d2 = a(paramn, paramArrayOfw[i]);
      if (j != 0) {
        break label63;
      }
      if (k == 0)
      {
        if (d2 < d1) {
          d1 = d2;
        }
        i++;
      }
    } while (j == 0);
    label63:
    return d1;
  }
  
  private static double[] a(a.d.o paramo, n paramn, b_ paramb_, int paramInt)
  {
    int n = a.B;
    int m = a.A;
    w localw1 = paramo.l();
    a.d.z localz = paramn.i();
    localz.c();
    localz.b(Math.max(paramo.g(), paramo.h()));
    w localw2 = a.d.z.a(localw1, localz);
    n localn = new n(localw1, localw2);
    w localw3 = a.d.o.b(paramo, localn, 0.0D);
    double d1 = 2.0D * w.a(localw1, localw3);
    int i = (int)Math.floor(paramn.h() / (d1 * paramb_.c));
    i = Math.max(i, 3);
    i = Math.min(i, paramInt);
    if (i % 2 == 0) {
      i++;
    }
    double d2 = 1.0D / (i - 1 + 2 * paramb_.d);
    double[] arrayOfDouble = new double[i];
    int j = 0;
    int k = paramb_.d;
    do
    {
      do
      {
        if (k >= i + paramb_.d) {
          break;
        }
        if (n != 0) {
          break label228;
        }
        arrayOfDouble[(j++)] = (d2 * k);
        k++;
        if (m != 0) {
          break label226;
        }
      } while (m == 0);
    } while (n != 0);
    if (paramb_.d == 0) {
      arrayOfDouble[(i - 1)] = 1.0D;
    }
    label226:
    label228:
    return arrayOfDouble;
  }
  
  private static double a(n paramn, w paramw)
  {
    w localw1 = paramn.d();
    w localw2 = paramn.e();
    double d1 = localw2.a - localw1.a;
    double d2 = localw2.b - localw1.b;
    double d3 = paramw.a - localw1.a;
    double d4 = paramw.b - localw1.b;
    double d5 = d3 * d1 + d4 * d2;
    double d6 = d5 * d5 / (d1 * d1 + d2 * d2);
    double d7 = d3 * d3 + d4 * d4 - d6;
    if (a.B == 0) {
      if (d7 < 0.0D) {
        d7 = 0.0D;
      }
    }
    return Math.sqrt(d7);
  }
  
  private static class b_
  {
    private byte a;
    private boolean b;
    private double c;
    private int d;
    private int e;
    
    private b_(byte paramByte, boolean paramBoolean)
    {
      this.a = paramByte;
      this.b = paramBoolean;
    }
    
    b_(byte paramByte, boolean paramBoolean, f.0 param0)
    {
      this(paramByte, paramBoolean);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.e.f

 * JD-Core Version:    0.7.0.1

 */